|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectandroid.support.v4.app.Fragment
com.facebook.widget.PickerFragment<GraphUser>
com.facebook.widget.FriendPickerFragment
public class FriendPickerFragment
Provides a Fragment that displays a list of a user's friends and allows one or more of the friends to be selected.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class com.facebook.widget.PickerFragment |
|---|
PickerFragment.GraphObjectFilter<T>, PickerFragment.OnDataChangedListener, PickerFragment.OnDoneButtonClickedListener, PickerFragment.OnErrorListener, PickerFragment.OnSelectionChangedListener |
| Nested classes/interfaces inherited from class android.support.v4.app.Fragment |
|---|
Fragment.InstantiationException, Fragment.SavedState |
| Field Summary | |
|---|---|
static String |
MULTI_SELECT_BUNDLE_KEY
The key for a boolean parameter in the fragment's Intent bundle to indicate whether the picker should allow more than one friend to be selected or not. |
static String |
USER_ID_BUNDLE_KEY
The key for a String parameter in the fragment's Intent bundle to indicate what user's friends should be shown. |
| Fields inherited from class com.facebook.widget.PickerFragment |
|---|
DONE_BUTTON_TEXT_BUNDLE_KEY, EXTRA_FIELDS_BUNDLE_KEY, SHOW_PICTURES_BUNDLE_KEY, SHOW_TITLE_BAR_BUNDLE_KEY, TITLE_TEXT_BUNDLE_KEY |
| Constructor Summary | |
|---|---|
FriendPickerFragment()
Default constructor. |
|
FriendPickerFragment(Bundle args)
Constructor. |
|
| Method Summary | |
|---|---|
boolean |
getMultiSelect()
Gets whether the user can select multiple friends, or only one friend. |
List<GraphUser> |
getSelection()
Gets the currently-selected list of users. |
String |
getUserId()
Gets the ID of the user whose friends should be displayed. |
void |
onInflate(Activity activity,
AttributeSet attrs,
Bundle savedInstanceState)
|
void |
setMultiSelect(boolean multiSelect)
Sets whether the user can select multiple friends, or only one friend. |
void |
setSettingsFromBundle(Bundle inState)
Updates the properties of the PickerFragment based on the contents of the supplied Bundle; calling Activities may use this to pass additional configuration information to the PickerFragment beyond what is specified in its XML layout. |
void |
setUserId(String userId)
Sets the ID of the user whose friends should be displayed. |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public static final String USER_ID_BUNDLE_KEY
public static final String MULTI_SELECT_BUNDLE_KEY
| Constructor Detail |
|---|
public FriendPickerFragment()
public FriendPickerFragment(Bundle args)
args - a Bundle that optionally contains one or more values containing additional
configuration information for the Fragment.| Method Detail |
|---|
public String getUserId()
public void setUserId(String userId)
userId - the user ID, or nullpublic boolean getMultiSelect()
public void setMultiSelect(boolean multiSelect)
multiSelect - true if the user can select multiple friends, false if only one friendpublic List<GraphUser> getSelection()
public void onInflate(Activity activity,
AttributeSet attrs,
Bundle savedInstanceState)
onInflate in class PickerFragment<GraphUser>public void setSettingsFromBundle(Bundle inState)
PickerFragment
setSettingsFromBundle in class PickerFragment<GraphUser>inState - a Bundle containing keys corresponding to properties of the PickerFragment
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||